package com.bl.student.dao.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by liangweikang on 18/12/29.
 */
@Entity
@Data
@Table(name = "goods_order")
@ApiModel(value = "OrderEntity", description = "订单")
@DynamicInsert
@DynamicUpdate
public class OrderEntity {

    @Id
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "订单号")
    private String ordersn;

    @ApiModelProperty(value = "乙方id")
    @Column(name = "partyb_id")
    private String partybId;

    @ApiModelProperty(value = "手机号")
    @Column(name = "partyb_mobile")
    private String partybMobile;

    @ApiModelProperty(value = "商品名")
    @Column(name = "goods_name")
    private String goodsName;


    @ApiModelProperty(value = "乙方姓名")
    @Column(name = "partyb_name")
    private String partybName;

    @ApiModelProperty(value = "地址")
    @Column(name = "address_id")
    private String addressId;

    @ApiModelProperty(value = "快递单号")
    private String express;

    @ApiModelProperty(value = "总价格")
    private int point;

    @ApiModelProperty(value = "购买数量")
    private int num;

    @ApiModelProperty(value = "创建时间")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @Column(name = "update_time")
    private Date updateTime;

    @ApiModelProperty(value = "商品id")
    @Column(name = "goods_id")
    private String goodsId;

    private String address;

    private String status;

}
